package com.chaopei.consumer_feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.util.logging.Logger;

//指定当前服务为消费者的身份（能够获取其他子应用提供的服务）
@EnableFeignClients
@SpringBootApplication
public class ConsumerFeignApplication {
    static Logger logger = Logger.getLogger("consumer-feign");
    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignApplication.class, args);
        logger.info("consumer-feign已启动");

    }
}
